.gift_hide {
    display: none !important;
}

.product_gift_cart_container {
    position: relative;
    margin-left: -17px;
    background: #FAFAFA;
    margin-bottom: 15px;
    width: calc(100% + 34px);
    padding: 0 17px
}

.product_gift_cart_container.managed_at_checkout {
    background: #fff;
    border-top: 1px solid #ccc;
    padding-top: 10px;
}

@media (max-width: 1024px) {
    .product_gift_cart_container {
        margin-bottom: 35px
    }
}

.cart__scrollable .product_gift_cart_container {
    margin-left: -20px;
    margin-bottom: 0;
    margin-top: -20px;
    width: calc(100% + 40px)
}

.product_gift_cart_container .product_gift_cart_container_title {
    text-align: center;
    padding-top: 10px;
    font-weight: 600;
    font-size: 12px;
    line-height: 18px;
    margin: auto;
    padding-bottom: 12px
}

.product_gift_cart_container.managed_at_checkout .product_gift_cart_container_subtitle {
    font-weight: normal;
    font-size: 10px;
}

.product_gift_cart_container .cart__item__gift__placeholder-container {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.product_gift_cart_container.managed_at_checkout .cart__item__gift__placeholder-container {
    justify-content: center;
}

.product_gift_cart_container .cart__item {
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border: 1px solid #E5E5E5;
    border-radius: 3px
}

.product_gift_cart_container .cart__item-details {
    flex: 0 1 auto;
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
    margin-bottom: 5px
}

.product_gift_cart_container.managed_at_checkout .cart__item-details {
    width: 100%;
    justify-content: center;
}

.product_gift_cart_container .cart__item__gift__placeholder {
    flex-basis: 32%;
    position: relative;
    padding-bottom: 0;
    background: rgba(255, 255, 255, 1);
    cursor: pointer;
}

.managed_at_checkout .product_gift_cart_container .cart__item__gift__placeholder {
    cursor: auto;
    -webkit-tap-highlight-color: transparent;
}

.product_gift_cart_container.managed_at_checkout .cart__item__gift__placeholder {
    margin: auto 15px;
    border-radius: 8px;
    background: #F6F6F6;
    padding: 8px;
    flex-basis: 108px;
    cursor: auto;
}

.template-cart .product_gift_cart_container .cart__item__gift__placeholder {
    padding: 16px;
}

@media (min-width: 1025px) {
    .template-cart .product_gift_cart_container .cart__item__gift__placeholder-container {
        justify-content: center;
    }

    .template-cart .product_gift_cart_container .cart__item__gift__placeholder {
        flex-basis: 15%;
        margin-left: 20px;
        margin-right: 20px;
        text-align: center;
    }

    .template-cart .product_gift_cart_container .cart__item-details {
        justify-content: center;

    }
}


.product_gift_cart_container .cart__item__gift__placeholder.active.cart__item {
    border: 1px solid #000000;
    border-radius: 3px
}

.product_gift_cart_container.managed_at_checkout .cart__item__gift__placeholder.active.cart__item {
    border-radius: 8px
}

.product_gift_cart_container .cart__item__gift__placeholder .btn--loading {
    display: none
}

.product_gift_cart_container .cart__item__gift__placeholder .btn--loading:before {
    border-color: #000;
    border-top-color: transparent
}

.product_gift_cart_container .cart__item__gift__placeholder.loading .btn--loading {
    position: absolute;
    display: block;
    width: 18px;
    height: 18px;
    background-color: transparent;
    left: 5px;
    top: 5px;
    z-index: 1
}

.product_gift_cart_container .cart__item__gift__placeholder .cart__item__icon-selected {
    display: none
}

.product_gift_cart_container .cart__item__gift__placeholder.active .cart__item__icon-selected {
    position: absolute;
    top: 5px;
    left: 5px;
    z-index: 1;
    display: block
}

.product_gift_cart_container .cart__item__gift__placeholder.cart__item__first .cart__image {
    margin-top: 25px;
    margin-bottom: 5px;
    margin-right: 10px
}

.product_gift_cart_container .cart__item__gift__placeholder.cart__item__first .cart__image img {
    padding: 0
}

.product_gift_cart_container .cart__image {
    margin-right: 0;
    flex: auto
}

.product_gift_cart_container .cart__image a {
    height: auto
}

.product_gift_cart_container .cart__image img {
    position: inherit;
    padding: 2px
}

.product_gift_cart_container.managed_at_checkout .cart__image img {
    mix-blend-mode: multiply;
    padding: 0;
}

.product_gift_cart_container .cart__item-name {
    margin-bottom: 0;
    font-weight: 400;
    font-size: 12px;
    line-height: 12px;
    min-height: 24px;
    text-align: center;
    padding-right: 6px;
    padding-left: 6px
}

.gift__placeholder__title, .gift__placeholder__subtitle, .flashsales__placeholder__title, .flashsales__placeholder__subtitle {
    font-weight: 600;
    font-size: 14px;
    line-height: 21px
}

.gift__placeholder__title, .flashsales__placeholder__title {
    margin-bottom: 5px
}

@media (min-width: 1024px) {
    .gift__placeholder__title, .flashsales__placeholder__title {
        font-size: 24px;
        margin-bottom: 10px
    }

    .gift__placeholder__title.small, .flashsales__placeholder__title.small {
        font-size: 12px
    }
}

.gift__placeholder__highlights {
    color: #f95a6d
}

.gift__placeholder {
    display: block;
    position: absolute;
    top: 0;
    left: -17px;
    width: calc(100% + 17px);
    height: calc(100% + 40px);
    z-index: 0;
    background: rgba(248, 247, 247, .76);
    border: 1px solid #E5E5E5;
    box-sizing: border-box;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px)
}

.cart__scrollable .gift__placeholder {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%
}

/* slightly transparent fallback for Firefox (not supporting backdrop-filter) */
@supports not ((-webkit-backdrop-filter: none) or (backdrop-filter: none)) {
    .gift__placeholder {
        background-color: #fffc
    }
}

.gift__placeholder__content, .flashsales__placeholder__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-align: center
}

.cart__add.free_gift {
    display: block;
    z-index: 5
}

.free_gift.btn--loading {
    margin-right: 20px
}

.free_gift.btn--loading:before {
    border-color: #000;
    border-top-color: transparent
}

.template-cart .free_gift_cart .free_gift.btn--loading {
    margin-left: 20px;
    margin-right: 0
}

.cart__remove.free_gift.free_gift_cart {
    display: none
}

.template-cart .cart__remove.free_gift.free_gift_cart {
    display: block
}

.template-cart .cart__remove.free_gift:not(.free_gift_cart) {
    display: none
}

@media (max-width: 1024px) {
    .template-cart .free_gift_cart .free_gift.btn--loading {
        margin: -2em auto 0;
        display: block;
        width: 100%;
        height: 2em;
        background-color: #fff;
        line-height: 1em
    }
}

.btn--loading {
    background-color: #3ca49f;
    color: #3ca49f;
    position: relative;
    text-indent: -9999px;
}

.btn--loading:active, .btn--loading:hover {
    background-color: #3ca49f;
    color: #3ca49f;
}

.btn--loading:before {
    animation: spin 1s linear infinite;
    border: 3px solid;
    border-color: #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    content: "";
    display: block;
    height: 22px;
    left: 50%;
    margin-left: -11px;
    margin-top: -11px;
    position: absolute;
    top: 50%;
    width: 22px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}